Optimal. Leaf size=100 \[ \frac {c e (a+b \text {ArcTan}(c x))^2}{b}-\frac {(a+b \text {ArcTan}(c x)) \left (d+e \log \left (1+c^2 x^2\right )\right )}{x}+\frac {1}{2} b c \left (d+e \log \left (1+c^2 x^2\right )\right ) \log \left (1-\frac {1}{1+c^2 x^2}\right )-\frac {1}{2} b c e \text {PolyLog}\left (2,\frac {1}{1+c^2 x^2}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.16, antiderivative size = 100, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {5137, 2525,
2458, 2379, 2438, 5004} \begin {gather*} -\frac {(a+b \text {ArcTan}(c x)) \left (e \log \left (c^2 x^2+1\right )+d\right )}{x}+\frac {c e (a+b \text {ArcTan}(c x))^2}{b}+\frac {1}{2} b c \log \left (1-\frac {1}{c^2 x^2+1}\right ) \left (e \log \left (c^2 x^2+1\right )+d\right )-\frac {1}{2} b c e \text {Li}_2\left (\frac {1}{c^2 x^2+1}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2379
Rule 2438
Rule 2458
Rule 2525
Rule 5004
Rule 5137
Rubi steps
\begin {align*} \int \frac {\left (a+b \tan ^{-1}(c x)\right ) \left (d+e \log \left (1+c^2 x^2\right )\right )}{x^2} \, dx &=-\frac {\left (a+b \tan ^{-1}(c x)\right ) \left (d+e \log \left (1+c^2 x^2\right )\right )}{x}+(b c) \int \frac {d+e \log \left (1+c^2 x^2\right )}{x \left (1+c^2 x^2\right )} \, dx+\left (2 c^2 e\right ) \int \frac {a+b \tan ^{-1}(c x)}{1+c^2 x^2} \, dx\\ &=\frac {c e \left (a+b \tan ^{-1}(c x)\right )^2}{b}-\frac {\left (a+b \tan ^{-1}(c x)\right ) \left (d+e \log \left (1+c^2 x^2\right )\right )}{x}+\frac {1}{2} (b c) \text {Subst}\left (\int \frac {d+e \log \left (1+c^2 x\right )}{x \left (1+c^2 x\right )} \, dx,x,x^2\right )\\ &=\frac {c e \left (a+b \tan ^{-1}(c x)\right )^2}{b}-\frac {\left (a+b \tan ^{-1}(c x)\right ) \left (d+e \log \left (1+c^2 x^2\right )\right )}{x}+\frac {b \text {Subst}\left (\int \frac {d+e \log (x)}{x \left (-\frac {1}{c^2}+\frac {x}{c^2}\right )} \, dx,x,1+c^2 x^2\right )}{2 c}\\ &=\frac {c e \left (a+b \tan ^{-1}(c x)\right )^2}{b}-\frac {\left (a+b \tan ^{-1}(c x)\right ) \left (d+e \log \left (1+c^2 x^2\right )\right )}{x}+\frac {b \text {Subst}\left (\int \frac {d+e \log (x)}{-\frac {1}{c^2}+\frac {x}{c^2}} \, dx,x,1+c^2 x^2\right )}{2 c}-\frac {1}{2} (b c) \text {Subst}\left (\int \frac {d+e \log (x)}{x} \, dx,x,1+c^2 x^2\right )\\ &=\frac {c e \left (a+b \tan ^{-1}(c x)\right )^2}{b}+b c d \log (x)-\frac {\left (a+b \tan ^{-1}(c x)\right ) \left (d+e \log \left (1+c^2 x^2\right )\right )}{x}-\frac {b c \left (d+e \log \left (1+c^2 x^2\right )\right )^2}{4 e}+\frac {(b e) \text {Subst}\left (\int \frac {\log (x)}{-\frac {1}{c^2}+\frac {x}{c^2}} \, dx,x,1+c^2 x^2\right )}{2 c}\\ &=\frac {c e \left (a+b \tan ^{-1}(c x)\right )^2}{b}+b c d \log (x)-\frac {\left (a+b \tan ^{-1}(c x)\right ) \left (d+e \log \left (1+c^2 x^2\right )\right )}{x}-\frac {b c \left (d+e \log \left (1+c^2 x^2\right )\right )^2}{4 e}-\frac {1}{2} b c e \text {Li}_2\left (-c^2 x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.07, size = 111, normalized size = 1.11 \begin {gather*} \frac {c e (a+b \text {ArcTan}(c x))^2}{b}-\frac {(a+b \text {ArcTan}(c x)) \left (d+e \log \left (1+c^2 x^2\right )\right )}{x}+b c \left (-\frac {\left (d+e \log \left (1+c^2 x^2\right )\right ) \left (d-2 e \log \left (-c^2 x^2\right )+e \log \left (1+c^2 x^2\right )\right )}{4 e}+\frac {1}{2} e \text {PolyLog}\left (2,1+c^2 x^2\right )\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 15.90, size = 0, normalized size = 0.00 \[\int \frac {\left (a +b \arctan \left (c x \right )\right ) \left (d +e \ln \left (c^{2} x^{2}+1\right )\right )}{x^{2}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 95.40, size = 160, normalized size = 1.60 \begin {gather*} - \frac {a d}{x} + \frac {2 a e \operatorname {atan}{\left (\frac {x}{\sqrt {\frac {1}{c^{2}}}} \right )}}{\sqrt {\frac {1}{c^{2}}}} - \frac {a e \log {\left (c^{2} x^{2} + 1 \right )}}{x} - b c^{3} e \left (\begin {cases} 0 & \text {for}\: c^{2} = 0 \\\frac {\log {\left (c^{2} x^{2} + 1 \right )}^{2}}{4 c^{2}} & \text {otherwise} \end {cases}\right ) + 4 b c^{2} e \left (\begin {cases} 0 & \text {for}\: c = 0 \\\frac {\operatorname {atan}^{2}{\left (c x \right )}}{4 c} & \text {otherwise} \end {cases}\right ) - \frac {b c d \log {\left (c^{2} + \frac {1}{x^{2}} \right )}}{2} - \frac {b c e \operatorname {Li}_{2}\left (c^{2} x^{2} e^{i \pi }\right )}{2} - \frac {b d \operatorname {atan}{\left (c x \right )}}{x} - \frac {b e \log {\left (c^{2} x^{2} + 1 \right )} \operatorname {atan}{\left (c x \right )}}{x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\left (a+b\,\mathrm {atan}\left (c\,x\right )\right )\,\left (d+e\,\ln \left (c^2\,x^2+1\right )\right )}{x^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________